package Serveur;

public class User {
	  
	private String m_login;
	private String m_password;
	private int m_portRafraichissement;
	private String m_adrIp;
	private boolean m_statutConnexion;
	
	// Definition du constructeur
	public User()
	{
		m_login = "";
		m_password = "";
		m_portRafraichissement = 0;
		m_adrIp = "";
		m_statutConnexion = false;
	}
	
	//definition des getters 
	public String getLogin(){ return m_login; }
	public String getPassWord(){ return m_password; }
	public int getPort(){ return m_portRafraichissement; }
	public String getAdrIp(){ return m_adrIp; }
	public boolean getStatutConnexion(){ return m_statutConnexion; }
	
	//definition des setters
	public void setLogin(String login){ m_login = login; }
	public void setPassWord(String password){ m_password = password; }
	public void setPort(int portRafraichissement){ m_portRafraichissement = portRafraichissement; }
	public void setAdrIp(String adrIp){ m_adrIp = adrIp; }
	public void setStatutConnexion(boolean statutConnexion){ m_statutConnexion = statutConnexion; }
	
	public void afficher()
	{
		System.out.print("client > "+m_login+" ");
		if(m_statutConnexion){System.out.println("connecté");}
		else{System.out.println("deconnecté");}
		System.out.println("         Password : "+m_password);
		System.out.println("         Adresse IP : "+m_adrIp);
		System.out.println("         Port UDP rafraichissement : "+m_portRafraichissement);
		System.out.println("=============================================");
	}
	
}
